<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* 通过网格布局方式，将父元素分为两个网格，左右网格固定宽度，中间自适应*/
    .outer {
      display: grid;
      grid-template-columns: 100px auto 200px;
      grid-template-rows:100px ;
      background-color: pink;
    }

    .left {
      background-color: tomato;
    }

    .right {
      background-color: gold;
    }

    .middle {
      background-color: lightgreen;
    }
  </style>
</head>

<body>
  <div class="outer ">
    <div class="left">left</div>
    <div class="middle">middle</div>
    <div class="right">right</div>
  </div>
</body>

</html>